package com.zjitc.dao;

import com.zjitc.model.User;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: lhl
 * @date-Time: 2018/5/28 0028
 * @description:
 */
public interface UserDao {
    /**
     * 数据库添加用户
     *
     * @param user
     * @return
     */
    int add(User user);

    /**
     * 返回所有用户
     *
     * @return
     */
    List<User> findAll();
}
